Xbasic
helper::GoogleSheetUpdateSheetJSON Method
Syntax
UpdateSheetJSON as L(sheetname as C,values as C[, columnNames as C[, range as C]])
Arguments
- sheetnameCharacter
- valuesCharacter
- columnNamesCharacter
- rangeCharacter
Returns
- resultLogical
Description
Update a sheet using JSON array of objects, arranged using the supplied columnnames. If column names are not supplied, then the first record is used to generate the column names.
Example
dim gs as helper::GoogleSheet gs.namedresource= "<namedresource>" gs.spreadsheet= "<spreadsheetid>" gs.UpdateSheetJson("customers",<<%JSON% [ { "firstname" : "jane", "lastname" : "doe" } ] %JSON%,"firstname,lastname","B1:B1")